let loading = false;
const toLoginPage = {
  to: () => {
    if (loading) {
      return;
    }
    uni.navigateTo({
      url: "/pages/login/login"
    });
    loading = true;
  },
  reset: () => (loading = false)
};
export default toLoginPage;
